package com.retailshop.shopfinace.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Order {
    public Double getAmountAll1() {
        return amountAll1;
    }

    public void setAmountAll1(Double amountAll1) {
        this.amountAll1 = amountAll1;
    }

    public Double getAmountAll2() {
        return amountAll2;
    }

    public void setAmountAll2(Double amountAll2) {
        this.amountAll2 = amountAll2;
    }

    public Double getAmountAll3() {
        return amountAll3;
    }

    public void setAmountAll3(Double amountAll3) {
        this.amountAll3 = amountAll3;
    }

    public Double getAmountAll4() {
        return amountAll4;
    }

    public void setAmountAll4(Double amountAll4) {
        this.amountAll4 = amountAll4;
    }

    private Double amountAll1;
    private Double amountAll2;
    private Double amountAll3;
    private Double amountAll4;

    private Integer orderId;

    private String orderNo;

    private Integer number;

    private String orderStatusname;

    private Double orderMoney;

    private String orderStatus;

    public String getUsernoName() {
        return usernoName;
    }

    public void setUsernoName(String usernoName) {
        this.usernoName = usernoName;
    }

    private String usernoName;
    private Integer usernoId;

    private Double coupon;

    private Double cashCoupon;

    private Double inter;

    private Double costInter;

    public Order(Integer number, String orderStatus) {
        this.number = number;
        this.orderStatus = orderStatus;
    }

    public Order() {
    }

    private Double cash;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date pOrderTime;

    private String outTradeNo;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date payTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date deliveryTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date payFinishTime;

    private Double freight;

    private Double avaCoupon;

    private Double avaCashcoupon;

    private String payErrorInfo;

    private Integer addressId;

    private Double realPay;

    private Integer isOrderFrom;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orderFromTime;

    private Integer isLaunchPay;

    private Integer checkCount;

    private Integer isInvoice;

    private String invoiceNo;

    public String getOrderStatusname() {return orderStatusname;}

    public void setOrderStatusname(String orderStatusname) {this.orderStatusname = orderStatusname;}

    public Integer getNumber() {return number;}

    public void setNumber(Integer number) {this.number = number;}

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo.trim();
    }

    public Double getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(Double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus == null ? null : orderStatus.trim();
    }

    public Integer getUsernoId() {
        return usernoId;
    }

    public void setUsernoId(Integer usernoId) {
        this.usernoId = usernoId;
    }

    public Double getCoupon() {
        return coupon;
    }

    public void setCoupon(Double coupon) {
        this.coupon = coupon;
    }

    public Double getCashCoupon() {
        return cashCoupon;
    }

    public void setCashCoupon(Double cashCoupon) {
        this.cashCoupon = cashCoupon;
    }

    public Double getInter() {
        return inter;
    }

    public void setInter(Double inter) {
        this.inter = inter;
    }

    public Double getCostInter() {
        return costInter;
    }

    public void setCostInter(Double costInter) {
        this.costInter = costInter;
    }

    public Double getCash() {
        return cash;
    }

    public void setCash(Double cash) {
        this.cash = cash;
    }

    public Date getpOrderTime() {
        return pOrderTime;
    }

    public void setpOrderTime(Date pOrderTime) {
        this.pOrderTime = pOrderTime;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo == null ? null : outTradeNo.trim();
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getPayFinishTime() {
        return payFinishTime;
    }

    public void setPayFinishTime(Date payFinishTime) {
        this.payFinishTime = payFinishTime;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public Double getAvaCoupon() {
        return avaCoupon;
    }

    public void setAvaCoupon(Double avaCoupon) {
        this.avaCoupon = avaCoupon;
    }

    public Double getAvaCashcoupon() {
        return avaCashcoupon;
    }

    public void setAvaCashcoupon(Double avaCashcoupon) {
        this.avaCashcoupon = avaCashcoupon;
    }

    public String getPayErrorInfo() {
        return payErrorInfo;
    }

    public void setPayErrorInfo(String payErrorInfo) {
        this.payErrorInfo = payErrorInfo == null ? null : payErrorInfo.trim();
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Double getRealPay() {
        return realPay;
    }

    public void setRealPay(Double realPay) {
        this.realPay = realPay;
    }

    public Integer getIsOrderFrom() {
        return isOrderFrom;
    }

    public void setIsOrderFrom(Integer isOrderFrom) {
        this.isOrderFrom = isOrderFrom;
    }

    public Date getOrderFromTime() {
        return orderFromTime;
    }

    public void setOrderFromTime(Date orderFromTime) {
        this.orderFromTime = orderFromTime;
    }

    public Integer getIsLaunchPay() {
        return isLaunchPay;
    }

    public void setIsLaunchPay(Integer isLaunchPay) {
        this.isLaunchPay = isLaunchPay;
    }

    public Integer getCheckCount() {
        return checkCount;
    }

    public void setCheckCount(Integer checkCount) {
        this.checkCount = checkCount;
    }

    public Integer getIsInvoice() {
        return isInvoice;
    }

    public void setIsInvoice(Integer isInvoice) {
        this.isInvoice = isInvoice;
    }

    public String getInvoiceNo() {
        return invoiceNo;
    }

    public void setInvoiceNo(String invoiceNo) {
        this.invoiceNo = invoiceNo == null ? null : invoiceNo.trim();
    }

    public String getLogname() {
        return logname;
    }

    public void setLogname(String logname) {
        this.logname = logname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddressAll() {
        return addressAll;
    }

    public void setAddressAll(String addressAll) {
        this.addressAll = addressAll;
    }

    public String getDetailAddr() {
        return detailAddr;
    }

    public void setDetailAddr(String detailAddr) {
        this.detailAddr = detailAddr;
    }

    private String logname;
    private String phone;
    private String addressAll;
    private String detailAddr;

    public String getLogisticalNo() {
        return logisticalNo;
    }

    public void setLogisticalNo(String logisticalNo) {
        this.logisticalNo = logisticalNo;
    }

    private String logisticalNo;
}